package ygw.study.designPatterns.bridge;

/**
 * <p>
 * 设计模式-桥接模式
 * </p>
 * <p>
 * Copyright:2021.All rights reserved.
 * </p>
 * <p>
 * Company:Zsoft
 * </p>
 * <p>
 * CreateDate:2021-05-22 21:42
 * </p>
 *
 * @author YuGongWen
 * @history Mender:YuGongWen；Date:2021-05-22 21:42；
 */
public class TestBridgePattern {
    public static void main(String[] args) {
        Shape redCircle = new Circle(100, 100, 10, new RedCircle());
        Shape greenCircle = new Circle(100, 100, 10, new GreenCircle());

        redCircle.draw();
        greenCircle.draw();
    }
}